import request from '@/utils/request'

// 悬赏分类
export function rewardClass(data={}) {
  return request({
    url: '/api/reward/classification',
    method: 'post',
	data:data
  })
}
//悬赏列表 
export function rewardAll(data={}) {
  return request({
    url: '/api/reward/all',
    method: 'post',
	data:data
  })
}
//悬赏数量 
export function rewardSum() {
  return request({
    url: '/api/reward/sum',
    method: 'post'
  })
}
//悬赏主列表 
export function lordLists() {
  return request({
    url: '/api/reward/lord',
    method: 'post'
  })
}
//开通悬赏主 
export function openLord(data) {
  return request({
    url: '/api/reward/open',
    method: 'post',
	data:data
  })
}
//获取单个分类
export function classification(data){
	return request({
	  url: '/api/reward/rewardclass',
	  method: 'post',
	  data:data
	})
}
//发布悬赏
export function release(data){
	return request({
	  url: '/api/reward/release',
	  method: 'post',
	  data:data
	})
}
//根据状态获取列表 
export function lists(data){
	return request({
	  url: '/api/reward/lists',
	  method: 'post',
	  data:data
	})
}
//获取单个悬赏 
export function rewardGet(data){
	return request({
	  url: '/api/reward/get',
	  method: 'post',
	  data:data
	})
}
//修改悬赏金额名额 
export function addPriceQuota(data){
	return request({
	  url: '/api/reward/addPriceQuota',
	  method: 'post',
	  data:data
	})
}
//修改悬赏状态 
export function updateStatus(data){
	return request({
	  url: '/api/reward/status',
	  method: 'post',
	  data:data
	})
}
//删除悬赏 返还保证金 
export function delReward(data){
	return request({
	  url: '/api/reward/del',
	  method: 'post',
	  data:data
	})
}
//推荐悬赏 
export function recommendReward(data){
	return request({
	  url: '/api/reward/recommendReward',
	  method: 'post',
	  data:data
	})
}
//编辑悬赏 
export function editReward(data){
	return request({
	  url: '/api/reward/edit',
	  method: 'post',
	  data:data
	})
}
//报名悬赏 
export function enroll(data){
	return request({
	  url: '/api/reward/enroll',
	  method: 'post',
	  data:data
	})
}
//用户悬赏列表 
export function userRewardLists(data){
	return request({
	  url: '/api/reward/userRewardLists',
	  method: 'post',
	  data:data
	})
}
//取消报名 
export function clearEnroll(data){
	return request({
	  url: '/api/reward/clearEnroll',
	  method: 'post',
	  data:data
	})
}
//删除任务悬赏 
export function delEnroll(data){
	return request({
	  url: '/api/reward/delEnroll',
	  method: 'post',
	  data:data
	})
}
//评价任务悬赏  
export function evaluate(data){
	return request({
	  url: '/api/reward/evaluate',
	  method: 'post',
	  data:data
	})
}
//获取用户评价 
export function getEvaluate(data){
	return request({
	  url: '/api/reward/getEvaluate',
	  method: 'post',
	  data:data
	})
}
//获取全部评价
export function getEvaluateLists(data){
	return request({
	  url: '/api/reward/getEvaluateLists',
	  method: 'post',
	  data:data
	})
}
//获取待审核悬赏数量
export function getUserSum(data={}){
	return request({
	  url: '/api/reward/getUserSum',
	  method: 'post',
	  data:data
	})
}
//提交悬赏 
export function userSubmit(data={}){
	return request({
	  url: '/api/reward/submit',
	  method: 'post',
	  data:data
	})
}
//审核悬赏列表 
export function examine(data={}){
	return request({
	  url: '/api/reward/examine',
	  method: 'post',
	  data:data
	})
}
//审核悬赏 
export function conductExamine(data={}){
	return request({
	  url: '/api/reward/conductExamine',
	  method: 'post',
	  data:data
	})
}
//申诉任务 
export function appeal(data){
	return request({
	  url: '/api/admin/rewards/appeal',
	  method: 'post',
	  data:data
	})
}
//查看申诉任务
export function seeAppeal(data){
	return request({
	  url: '/api/admin/rewards/seeAppeal',
	  method: 'post',
	  data:data
	})
}
//用户悬赏中心
export function getUserRewards(data){
	return request({
	  url: '/api/reward/getUserRewards',
	  method: 'post',
	  data:data
	})
}
